package org.anjan.dp.abstractfactory.shipfactoryimpl;

import org.anjan.dp.abstractfactory.Engine;
import org.anjan.dp.abstractfactory.ShipFactory;
import org.anjan.dp.abstractfactory.Turbo;
import org.anjan.dp.abstractfactory.engineimpl.DieselEngine;
import org.anjan.dp.abstractfactory.weaponimpl.PetrolTurbo;

/*
* This factory would define all the parts of the ship
* it would use for a diesel ship
* */
public class DieselShipFactory implements ShipFactory {
    @Override
    public Engine getEngine() {
        return new DieselEngine();
    }

    @Override
    public Turbo getTurbo() {
        return new PetrolTurbo();
    }
}
